import {WeaTools} from 'ecCom'
import isEmpty from 'lodash/isEmpty'

export const getAttentionTypeSet = (params) => {
	const _url  = '/api/workflow/requestAttention/getAttentionTypeSet';
	let queryParam = {};
	if(params == "com"){
		queryParam.src = "getData2";
	}else{
		queryParam.src = "getData";
	}
	return WeaTools.callApi(_url, 'POST',queryParam);
}
export const getWorkflowAttentionTypeSet = (params) => {
	const _url  = '/api/workflow/requestAttention/getAttentionTypeSet';
	let queryParam= { src: "getData2" };
	if(params){
		queryParam.requestid = params
	}
	return WeaTools.callApi(_url, 'POST',queryParam);
}
export const saveAttentionTypeSet = (params) => {
	const _url  = '/api/workflow/requestAttention/saveAttentionTypeSet';
	return WeaTools.callApi(_url, 'POST',params);
}
export const saveAttention = (params) => {
	const _url  = '/api/workflow/requestAttention/saveAttention';
	return WeaTools.callApi(_url, 'POST',params);
}
// http://192.168.81.157:8080/api/workflow/requestAttention/saveAttention